home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / netprog.zip / NETPROG.TAR / lpr / systype.sh < prev   
Text File  |  1989-12-17  |  420b  |  23 lines

  1.  # (leading space required for Xenix /bin/sh)
  2.  
  3. #
  4. # Determine the type of *ix operating system that we're
  5. # running on, and echo an appropriate value.
  6. # This script is intended to be used in Makefiles.
  7. # (This is a kludge.  Gotta be a better way.)
  8. #
  9.  
  10. if (test -f /vmunix)
  11. then
  12.     echo "bsd"
  13. elif (test -f /xenix)
  14. then
  15.     echo "xenix"
  16. elif (test -c /dev/spx)
  17. then
  18.     echo "sys5"
  19. elif (test -f /etc/lddrv)
  20. then
  21.     echo "unixpc"
  22. fi
  23.